IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectAllPedido]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[SelectAllPedido]
GO

CREATE PROCEDURE [dbo].[SelectAllPedido]

AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdPedido],
	[IdCliente],
	[IdDepartamento],
	[Fecha],
	[Documento],
	[IdCuenta],
	[NroOperacion],
	[FechaOperacion],
	[Descripcion],
	[Estado],
	[Autorizador]
	FROM [Pedido]

	SET NOCOUNT OFF
END

GO
